package com.bawei.main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

/**
 * Author: Jason Zhang
 * Date: 2025/1/15
 * Desc: 主页面适配器
 */
class MainPageAdapter constructor(fm: FragmentManager, private var fragments: List<Fragment>, behavior: Int): FragmentPagerAdapter(fm, behavior){
    override fun getCount(): Int = fragments.size

    override fun getItem(position: Int): Fragment = fragments[position]
}